package com.intrusion.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.intrusion.common.utils.Result;
import com.intrusion.entity.ZdBjxx;
import com.intrusion.service.BjxxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author generator
 * @since 2024-07-02
 */
@RestController
@RequestMapping("/intrusion/kyz-zdbj-bjxx")
public class BjxxController {

    @Autowired
    private BjxxService bjxxService;

    @GetMapping("/testBjxx")
    public Result registerCount() {
        List<ZdBjxx> list = bjxxService.list(new QueryWrapper<>(null));
        return Result.ok(list);
    }
}

